<?php
/**
 * Interface rail_iterator
 *
 * An iterator over a collection of rail_object objects.
 *
 **
 * PHP versions 5
 * See http://www.open-rail.org for more informations.
 *
 **
 * Copyright (C)
 *
 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
 * of ERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software
 * Fundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
 *
 **
 * @author Bastian Schröder <bs@chemanet.de>
 * @version 2008-07-18
 * @package rail
 */
interface rail_iterator {

	/**
	 * Returns true if the iteration has more elements. In other words, returns true if next would return an rail_object.
	 *
	 * @return boolean
	 */
	public function has_next () ;


	/**
	 * Returns the next element in the iteration.
	 *
	 * @return rail_object
	 */
	public function next () ;

} // End of rail_iterator
?>